<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>box-shadow</title>
</head>
<body>
  <div>
    <img src="./img.jpg" alt="图片">
  </div>
</body>
<style>
  body {
    margin: 0;
    text-align: center;
  }
  img {
    z-index: -1;
    height: 500px;
    position: relative;
  }

  div {
    height: 500px;
    width: 395px;
    box-shadow: inset 0 0 0px 30px rgba(174, 174, 144, 0.4);
    display: inline-block;
  }
</style>
</html>